package com.hong.demo.other.fsm.inf;

import com.hong.demo.other.fsm.IFSMContext;
import com.hong.demo.other.fsm.impl.OrderState;

public interface IFSMTransition<T extends IFSMContext> {

    // 检测器逻辑，校验条件
    // boolean onGuard(T context);

    /**
     * 转换器逻辑，业务处理逻辑
     *
     * @return: 目标状态
     */
    OrderState onTransition(T context);
}